define(["jquery","template",
	"scprit/followup/template/workBench/workBenchDiabetes.tpl.js"],function($,template,tpl){
	var ui = {};

	var drawBabyList = function(data){
		return template("tpl_workBenchBabyList",data);
	};
	var drawSelectQueue = function(data){
		return template("tpl_workBenchSelect",data);
	};
	var drawWindowRight = function(data){
		return template("tpl_workBenchOperateList",data);
	} ;

	/**
	 * 队列
	 */
	ui.selectQueueInit = function(options){
		var data = {
			rows:options.list
		}
		$("#"+options.id).html(tpl.init2());
		var h = drawSelectQueue(data);
		$("#"+options.id).html(h);
	};
	/**
	 * 今日门诊
	 */
	ui.windowRightInit = function(options){
		var data = {
			rows:options.list
		}
		$("#"+options.id).html(tpl.init3());
		var h = drawWindowRight(data);
		$("#"+options.id).html(h);
	}
	/**
	 * 窗口期随访患者
	 */
	ui.babyListInit = function(options){
		var data = {
			rows:options.list,
			emptyRows:options.empty
		};
		$("#"+options.id).html(tpl.init1());
		var h = drawBabyList(data);
		$("#"+options.id).html(h) ;
	}

	return ui;
});